/**
 * 
 */
package com.yidu.privilege.Dao;

import java.util.List;

import com.yidu.privilege.Domain.Module;
import com.yidu.privilege.Domain.Role;
import com.yidu.privilege.Utils.Pages;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author Administrator
 *
 */
@Mapper
public interface RoleDao {
    List<Role> findAll(@Param("ro") Role ro, @Param("page") Pages pa);
    List<Role> finAlls(Role ro);
    void savaOrUpdate(Role ro);
    Integer count(Role ro);
    Role findbyid(Integer id);
    Module findbyidm(Integer id);
    int delete(Role id);
    int add(Role ro);
    int update(Role ro);

    Role queryIDbyname();
    Role queryIdByExpertName();
    Role queryIdByLeaderName();
}
